<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>day3</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            font-weight: bold;
        }
        body{
            background-color: gainsboro;
            width: 800px;
            line-height: 800px;
            text-align: center;
            margin: auto;
            position: relative;
        }
        .tasklogin{
            width: 340px;
            height: 277px;
            margin: auto;
            text-align: center;
            background-color: white;

            line-height: 1.5;
            display: inline-block;            
            vertical-align: middle;
            /*平移到中间
             margin: 0;
            position: absolute;
            transform: translate(50%, 50%); */ 
        }
        .ipt{
            width: 300px;
            height: 30px;
            border: 1px solid rgb(212, 203, 203);
            padding-left: 10px;
        }

        button{
            background-color:#1890ff ;
            color: white;
            width: 310px;
            height: 35px;
            border: white solid 2px;
        }
        .ck{
            margin-left: 20px;
            float: left;
        }

       
    </style>
</head>
<body>
    <div class="tasklogin">
        <br>
        <h3>TASK登录界面</h3><br>
        <div >
            <input type="text" placeholder="账号" class="ipt">
        </div>
        <br>
        <div >
            <input type="password" placeholder="密码" class="ipt">
        </div>
        <br>
        <div class="ck">
            <input type="checkbox" > 记住密码
        </div><br>
        <button  >登录</button>
    </div>
</body>
</html>